package com.proyecto.swarm;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;

public class MainActivity extends Activity implements OnClickListener{

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		findViewById(R.id.boton1).setOnClickListener(this);
		findViewById(R.id.boton2).setOnClickListener(this);
		findViewById(R.id.boton3).setOnClickListener(this);
	}

	public void onClick(View v) {
		switch(v.getId()) {
		case R.id.boton1:
			Intent i = new Intent(this, MapaActivity.class);
			startActivity(i);
			break;
		
		case R.id.boton3:
			finish();
			break;
		}
	}   

}
